package com.k3cloud.base.type;

public enum ClassificationTypeEnum {
    DEFAULT("a");
    private String value;
    ClassificationTypeEnum(String value)
    {
        this.value = value;
    }

    public String value()
    {
        return this.value;
    }

    public ClassificationTypeEnum setValue(String value) {
        this.value = value;
        return this;
    }
    // 通过值查找枚举
    public static ClassificationTypeEnum fromValue(String value) {
        for (ClassificationTypeEnum e : values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }
}